:root {
  --main-line-color: #d29f4f;
  --dot-color: #f9a825;
  --white-dot-color: #fff;
}
.timeline-end {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--main-line-color);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% - 20px);
}
.end1 {
  top: 0;
}
.end2 {
  top: 100%;
}
.timeline-container {
  position: relative;
  max-width: 80vw;
  margin: 0 auto;
  padding: 20px;
}

.timeline-header {
  margin-top: 10vw;
}
.timeline-header div {
  text-align: center;
  color: var(--main-line-color);
  /* margin-bottom: 40px; */
  font-size: 3vw;
}

/* 主时间轴线 */
.timeline-main-line {
  position: absolute;
  width: 3px;
  background-color: var(--main-line-color);
  top: 0px;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

/* 白色圆圈节点 */
.timeline-node {
  position: absolute;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 3px solid var(--main-line-color);
  border-radius: 50%;
  left: 50%;
  /* transform: translateX(-50%);/ */
}
.node-3,
.node-2,
.node-1 {
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  /* margin: 60px 0; */
  position: relative;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  order: 2;
  margin-right: 20px;
}

.timeline-item:nth-child(odd) .timeline-dot {
  order: 1;
}

.timeline-item:nth-child(even) .timeline-content {
  order: 1;
  margin-left: 20px;
}

.timeline-item:nth-child(even) .timeline-dot {
  order: 2;
}

.timeline-dot {
  width: 100px;
  height: 100px;
  background-color: var(--dot-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot1 {
  width: 260px;
  height: 260px;
  background-color: transparent;
}
.timeline-content {
  flex: 1;
  max-width: 45%;
}

.content {
  text-align: start;
}
.content1 {
  text-align: end;
}
.timeline-content h3 {
  color: var(--main-line-color);
  margin-bottom: 15px;
  font-size: 2vw;
}

.timeline-content p {
  color: #666;
  line-height: 3;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.timeline-img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
}

/* 虚线连接 */
.timeline-connect1,
.timeline-connect {
  position: absolute;
  width: 1px;
  height: 25vw;
  background: repeating-linear-gradient(
    0deg,
    var(--dot-color),
    var(--dot-color) 3px,
    transparent 3px,
    transparent 6px
  );
  left: 50%;
  transform: translateX(193px) translateY(0px) rotate(90deg);
}
.timeline-connect1 {
  transform: translateX(-193px) translateY(0px) rotate(90deg);
}
/* 移动端适配 */
@media (max-width: 767px) {
  .timeline-main-line,
  .timeline-node,
  .timeline-connect {
    left: 30px;
    transform: none;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin: 30px 0;
  }

  .timeline-content {
    max-width: 100%;
    margin: 15px 0 0 60px !important;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    order: 2;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    order: 1;
  }

  .timeline-dot {
    width: 80px;
    height: 80px;
  }

  .node-1 {
    top: 130px;
  }

  .node-2 {
    top: 370px;
  }

  .node-3 {
    top: 610px;
  }

  .timeline-connect {
    top: 40px;
    bottom: 40px;
  }
}

.title {
  margin: 20px 0;
  color: #ac8c4d;
  font-size: 3vw;
}
.fan-image {
  position: relative;
  margin: 30px 0;
}
.fan-image img {
  width: 100%;
  display: block;
}
.fan-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #8b5c2c;
}
.tag-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}
.tag {
  width: 15vw;
  height: 15vw;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3vw;
  margin: 0 40px;
  transform: translateY(-30%);
}
.tag传承 {
  background-color: #6699ff;
  color: white;
}
.tag创新 {
  background-color: #ffb333;
  color: white;
}
.tag品质 {
  background-color: #4caf50;
  color: white;
}
.description {
  text-align: center;
  line-height: 1.6;
  font-size: 2vw;
  color: #ac8c4d;
}
